package network;

import user.UserData;

public class ChatMessage {
    public String message;
    public String channel;
    public UserData from;
    public int type;
    public int command;
    
    public ChatMessage(String message, String channel, int type, int command){
    	this.message = message;
    	this.channel = channel;
    	this.type = type;
    	this.command = command;
    }

	public ChatMessage(int type, int command,
			UserData user, String channel, String message) {
		this.type = type;
		this.command = command;
		this.from = user;
		this.channel = channel;
		this.message = message;
	}

}
